﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Models;

namespace DAL.BAL
{
    public static class LoadedData
    {
        #region Fields

        private static List<InterviewResult> interviewResults = null;

        private static List<Age> ages = null;

        private static List<Vacancy_Types> vacancy_Types = null;

        private static List<SalaryRanx> salaryRanges = null;

        private static List<CompareImportant> compareImportants = null;

        private static List<HasCar> hasCars = null;

        private static List<Candidate_Types> candidate_Types = null;

        #endregion

        #region Properties

        public static List<InterviewResult> InterviewResults
        {
            get
            {
                return interviewResults;
            }
        }

        public static List<Age> Ages
        {
            get
            {
                return ages;
            }
        }

        public static List<Vacancy_Types> Vacancy_Types
        {
            get
            {
                return vacancy_Types;
            }
        }

        public static List<SalaryRanx> SalaryRanges
        {
            get
            {
                return salaryRanges;
            }
        }

        public static List<CompareImportant> CompareImportants
        {
            get
            {
                return compareImportants;
            }
        }

        public static List<HasCar> HasCars
        {
            get
            {
                return hasCars;
            }
        }

        public static List<Candidate_Types> Candidate_Types
        {
            get
            {
                return candidate_Types;
            }
        }

        #endregion

        static LoadedData()
        {
            interviewResults = Business.GetInterviewResults().ToList();

            ages = Business.GetAges().ToList();

            vacancy_Types = Business.GetVacancyTypes().ToList();

            salaryRanges = Business.GetSalaryRanges().ToList();

            compareImportants = Business.GetCompareImportants().ToList();

            hasCars = Business.GetHasCar().ToList();

            candidate_Types = Business.GetCandidateTypes().ToList();
        }

        public static void Init()
        {
        }
    }
}
